package com.ficus.road.maintain.core.dto.weather;

import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class WeatherDTO {
    @JsonProperty("id")
    private String id;

    @JsonProperty("weather")
    private JSONObject weather;

    @JsonProperty("creationTime")
    @JsonFormat(pattern = "yyyyMMddHHmmss")
    private LocalDateTime creationTime;
}
